package com.cman777.springc.encode.advice.d4t;

/**
 * @author chenzhicong
 * @time 2020/4/15 11:34
 * @description
 */
public class AesKeyHolder {

    public static ThreadLocal<String> aesKeyLocal = new ThreadLocal<>();

    public static String getAesKey() {
        return aesKeyLocal.get();
    }

    public static void setAesKey(String aesKey) {
        aesKeyLocal.set(aesKey);
    }

    public static void clear() {
        aesKeyLocal.remove();
    }
}
